import hostConfig from '@/utils/config';

/**
 * 配置api接口信息
 * @type {string}
 */
const service_module = {

    /** 登录接口 */
    login: {method: 'post', url: 'baseinfo/proxy/login'},
    /** 修改登录密码接口 */
    pass: {method: 'post', url: 'user/updatepass'},
    /** 商品分类 */
    manage_goods_list: {method: 'get', url: 'goods/category'},
    /** 商品列表(云端管理) */
    cloud_goods: {method: 'GET', url: 'platform/goods'},
    /** 店铺管理 */
    shop_list: {method: 'get', url: 'shop'},

    /** 文件上传 */
    manage_upload_file: {method: 'post', url: 'platform/upload_cos'},

    /** 区域信息 */
    region_list: {method: 'get', url: 'baseinfo/region/list'},

    /** 广告管理 */
    ad_list: {method: 'post', url: 'ad/list'},
    ad_save: {method: 'post', url: 'ad/save'},
    ad_detail: {method: 'post', url: 'ad/detail'},
    ad_update: {method: 'post', url: 'ad/update'},
    ad_delete: {method: 'delete', url: 'ad/delete'},

    /** 广告分类信息 */
    ad_type: {method: 'get', url: 'platform/adcategory/avaliable'},
};
const api_setting = {
    ...service_module
};
export default api_setting;
